[Unit]
Description=Kafka
After=zookeeper.service

[Service]
Type=simple
Environment=LOG_DIR={{ kafka_work_dir }}/logs
Environment=JAVA={{ jdk_dir }}/bin/java
ExecStart={{ kafka_work_dir }}/bin/kafka-server-start.sh {{ kafka_work_dir }}/config/server.properties
ExecStop={{ kafka_work_dir }}/bin/kafka-server-stop.sh
Restart=always

[Install]
WantedBy=multi-user.target